import Home from "@/views/Home";
import {Navigate} from "react-router-dom";
import Login from "@/views/Login/Login.tsx"
import Page1 from "@/views/Page1.tsx"
import Page2 from "@/views/Page2.tsx"
import Page3 from "@/views/Page3.tsx"
import Page4 from "@/views/Page4.tsx"


const router = [
    {
        path: '/',
        element: <Navigate to='/page1' />
    },{
        path: '/login',
        element: <Login />
    },{
        path: '/',
        element: <Home />,
        children: [
            {
                path: '/page1',
                element: <Page1 />
            },{
                path: '/page2',
                element: <Page2 />
            },{
                path: '/page3',
                element: <Page3 />
            },{
                path: '/page4',
                element: <Page4 />
            },
        ]
    },
]
export default router